<?php

class MasterTest {

    private $mc ;

    protected $errors = array() ;

    public function __construct() {
        require_once("../Controllers/MasterController.php") ;

        $this->mc = new MasterController() ;

    }
    
    public function getErrors() {

        $retStr = "" ;

        foreach ($this->errors as $error) {
            $retStr .= "<div>" ;
            if(isset($error["line"])) {
               $retStr .= "<p>Line: ".$error["line"]."</p>" ;
            }
            if(isset($error["class"])) {
                $retStr .= "<p>Class: ".$error["class"]."</p>" ;
            } 
            if(isset($error["function"])) {
                $retStr .= "<p>Function: ".$error["function"]."</p>" ;
            }
            if(isset($error["msg"])) {
                $retStr .= "<p>Msg: ".$error["msg"]."</p>" ;
            }
            $retStr .= "</div>" ;
        }

        return $retStr ;

    }
}
